// 分红明细页面样式
.dividend-page {
  padding: 20rpx;
  background: #f6f6f6;
  min-height: 100vh;
  padding-top: 160rpx; // 为导航栏留出空间
  
  .month-selector {
    .selector-item {
      transition: all 0.3s ease;
      
      &:active {
        background-color: #e8e8e8;
      }
    }
  }
  
  .stats-cards {
    .stats-card {
      transition: all 0.3s ease;
      
      &:active {
        transform: scale(0.98);
      }
    }
  }
  
  // AB区进度轮播容器
  .ab-progress-carousel {
    margin: 20rpx 0;
    
    .carousel-container {
      position: relative;
      overflow: hidden;
      border-radius: 20rpx;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      padding: 30rpx;
      margin: 20rpx;
      
      .carousel-wrapper {
        display: flex;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        
        .carousel-item {
          min-width: 100%;
          flex-shrink: 0;
          
          .level-title {
            text-align: center;
            color: #ffffff;
            font-size: 36rpx;
            font-weight: bold;
            margin-bottom: 30rpx;
            text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.3);
          }
          
          .level-status {
            display: flex;
            justify-content: center;
            margin-bottom: 40rpx;
            
            .status-tag {
              padding: 12rpx 24rpx;
              border-radius: 20rpx;
              font-size: 24rpx;
              font-weight: bold;
              
              &.qualified {
                background: rgba(76, 175, 80, 0.9);
                color: #ffffff;
              }
              
              &.unqualified {
                background: rgba(244, 67, 54, 0.9);
                color: #ffffff;
              }
            }
          }
          
          .chart-container {
            display: flex;
            justify-content: space-around;
            align-items: flex-end;
            gap: 40rpx;
            padding: 40rpx 20rpx;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 16rpx;
            backdrop-filter: blur(10rpx);
            box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.1);
            
            .chart-item {
              display: flex;
              flex-direction: column;
              align-items: center;
              flex: 1;
              
              .chart-label {
                margin-bottom: 20rpx;
                
                .chart-title {
                  font-size: 28rpx;
                  color: #333333;
                  font-weight: bold;
                  margin-bottom: 8rpx;
                  text-align: center;
                }
                
                .chart-value {
                  font-size: 22rpx;
                  color: #666666;
                  text-align: center;
                }
              }
              
              .chart-bar-container {
                display: flex;
                flex-direction: column;
                align-items: center;
                width: 100%;
                
                .chart-bar {
                  width: 50rpx;
                  height: 180rpx;
                  background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
                  border-radius: 25rpx 25rpx 8rpx 8rpx;
                  overflow: hidden;
                  position: relative;
                  box-shadow: inset 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
                  
                  .chart-fill {
                    width: 100%;
                    border-radius: 25rpx 25rpx 8rpx 8rpx;
                    transition: height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
                    position: absolute;
                    bottom: 0;
                    box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.15);
                    
                    &.total-fill {
                      background: linear-gradient(180deg, #4facfe 0%, #00f2fe 100%);
                      
                      &.completed {
                        background: linear-gradient(180deg, #51cf66 0%, #69db7c 100%);
                      }
                    }
                    
                    &.a-area-fill {
                      background: linear-gradient(180deg, #ff6b6b 0%, #ff8e8e 100%);
                      
                      &.completed {
                        background: linear-gradient(180deg, #51cf66 0%, #69db7c 100%);
                      }
                    }
                    
                    &.b-area-fill {
                      background: linear-gradient(180deg, #4ecdc4 0%, #44a08d 100%);
                      
                      &.completed {
                        background: linear-gradient(180deg, #51cf66 0%, #69db7c 100%);
                      }
                    }
                  }
                }
                
                .chart-percent {
                  font-size: 24rpx;
                  color: #333333;
                  margin-top: 16rpx;
                  font-weight: bold;
                  text-align: center;
                }
              }
            }
          }
        }
      }
      
      // 左右切换按钮
      .carousel-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 60rpx;
        height: 60rpx;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(10rpx);
        
        &.nav-prev {
          left: 20rpx;
        }
        
        &.nav-next {
          right: 20rpx;
        }
        
        .nav-icon {
          width: 24rpx;
          height: 24rpx;
          color: #333333;
        }
        
        &:active {
          transform: translateY(-50%) scale(0.95);
        }
      }
      
      // 指示器
      .carousel-indicators {
        display: flex;
        justify-content: center;
        margin-top: 20rpx;
        gap: 12rpx;
        
        .indicator {
          width: 16rpx;
          height: 16rpx;
          border-radius: 50%;
          background: rgba(255, 255, 255, 0.5);
          transition: all 0.3s ease;
          
          &.active {
            background: #ffffff;
            transform: scale(1.2);
          }
        }
      }
    }
  }
  
  .dividend-levels {
    .level-item {
      .level-header {
        transition: all 0.3s ease;
        
        &:active {
          background-color: #f8f8f8;
        }
      }
      
      .participants-list {
        .participant-item {
          display: flex;
          align-items: center;
          justify-content: space-between;
          padding: 20rpx 30rpx;
          border-bottom: 1rpx solid #f0f0f0;
          transition: all 0.3s ease;
          
          &:last-child {
            border-bottom: none;
          }
          
          &:active {
            background-color: #f8f8f8;
          }
          
          .participant-info {
            display: flex;
            align-items: center;
            flex: 1;
            
            .participant-avatar {
              width: 60rpx;
              height: 60rpx;
              border-radius: 50%;
              margin-right: 20rpx;
              background-color: #f0f0f0;
            }
            
            .participant-details {
              flex: 1;
              
              .participant-name {
                font-size: 28rpx;
                color: #333;
                margin-bottom: 8rpx;
              }
              
              .participant-level {
                font-size: 24rpx;
                color: #999;
              }
            }
          }
          
          .participant-amount {
            font-size: 28rpx;
            font-weight: bold;
            color: #fa3534;
          }
        }
      }
    }
  }
}

// 统计卡片布局
.stats-cards {
  display: flex;
  padding: 0 30rpx 20rpx;
  gap: 20rpx;
  
  .stats-card {
    flex: 1;
    background-color: #ffffff;
    border-radius: 16rpx;
    padding: 30rpx 20rpx;
    text-align: center;
    
    .card-title {
      font-size: 24rpx;
      color: #666666;
      margin-bottom: 10rpx;
    }
    
    .card-value {
      font-size: 36rpx;
      font-weight: bold;
      color: #333333;
      margin-bottom: 8rpx;
    }
    
    .card-desc {
      font-size: 22rpx;
      color: #999999;
    }
  }
}

// 月份选择器样式
.month-selector {
  background-color: #ffffff;
  border-radius: 16rpx;
  margin-top: 20rpx;
  margin-bottom: 20rpx;
  overflow: hidden;
  
  .selector-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40rpx 30rpx;
    margin: 20rpx;
    background-color: #f8f8f8;
    border-radius: 12rpx;
    min-height: 80rpx;
    
    .selector-text {
      font-size: 32rpx;
      color: #333333;
    }
    
    .selector-arrow {
      width: 24rpx;
      height: 24rpx;
    }
  }
}

// 分红等级列表样式
.dividend-levels {
  padding: 0 30rpx;
  
  .level-item {
    background-color: #ffffff;
    border-radius: 16rpx;
    margin-bottom: 20rpx;
    overflow: hidden;
    
    .level-header {
      display: flex;
      align-items: center;
      padding: 30rpx;
      border-bottom: 1rpx solid #f0f0f0;
      
      .level-info {
        flex: 1;
        
        .level-name {
          font-size: 32rpx;
          font-weight: bold;
          color: #333333;
          margin-bottom: 8rpx;
        }
        
        .level-desc {
          font-size: 24rpx;
          color: #666666;
        }
      }
      
      .level-amount {
        font-size: 36rpx;
        font-weight: bold;
        color: #ff6b35;
        margin-right: 20rpx;
      }
      
      .level-arrow {
        width: 24rpx;
        height: 24rpx;
      }
    }
  }
}

// 响应式设计
@media screen and (max-width: 750rpx) {
  .dividend-page {
    .stats-cards {
      flex-direction: column;
      
      .stats-card {
        margin-bottom: 20rpx;
      }
    }
  }
}
